package cn.tedu.image.controller;

import cn.tedu.image.pojo.ImageRo;
import cn.tedu.image.service.ImageService;
import cn.tedu.image.vo.JsonResult;
import cn.tedu.image.vo.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 本类用于
 *
 * @author SJXQ
 * @version 2022/1/17 14:56
 */
@RestController
@RequestMapping("/image")
public class ImageController {

    @Autowired
    private ImageService imageService;

    @GetMapping("/list")
    public JsonResult<PageResult> selectPage(PageResult pageResult){
        imageService.selectPage(pageResult);
        return JsonResult.build().code(JsonResult.SUCCESS).data(pageResult);
    }
}
